package com.rerun.test;

import com.rerun.common.util.AES;
import com.rerun.common.util.Validator;
import org.junit.Test;

import java.util.HashSet;
import java.util.Set;

/**
 * The type Unit.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /9/28 16:41
 */

public class Unit {

    @Test
    public void junit() {
        Set<String> strings=new HashSet<>();
           strings.add("a");
           strings.add("b");
           strings.add("c");
           strings.add("d");
           strings.add("a");
       strings.forEach(System.out::println) ;

    }

    @Test
    public void test(){
        System.out.println(Validator.isMobile("18638269559"));

    }
    @Test
    public void redisMq(){
        System.out.println(AES.encryptAES("xfa5211314"));
    }

}
